const formateDate = (date) => {
  let year = date.getFullYear();
  let month = date.getMonth() + 1;
  let day = date.getDate();

  day = day < 10 ? '0' + day : day;
  month = month < 10 ? '0' + month : month

  return `${year}年${month}月${day}`
}

module.exports = {
  formateDate
}